﻿<%@ Page Title="Members" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="List.aspx.vb" Inherits="List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
<asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" CssClass="gridview">
    <p>
    <br />
</p>
<p>
    &nbsp;</p>
    <p>
</p>
<p class="leadingStatement">
                See our members! Click on detail to see more about a member! </p>
<p>
</p>
     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="ID" DataSourceID="SqlDataSource1" AllowSorting="True" 
        HorizontalAlign="Center" Width="636px" style="margin-left: 38px">
    <Columns>
        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
            ReadOnly="True" SortExpression="ID" />
        <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
            SortExpression="FirstName" />
        <asp:BoundField DataField="LastName" HeaderText="LastName" 
            SortExpression="LastName" />
        <asp:BoundField DataField="Address" HeaderText="Address" 
            SortExpression="Address" />
        <asp:BoundField DataField="Phone" HeaderText="Phone" 
            SortExpression="Phone" />
            <asp:ImageField AlternateText="Photo" DataAlternateTextField="Photo" 
            DataAlternateTextFormatString="image{0}" DataImageUrlField="Photo" 
            HeaderText="Photo" SortExpression="ID">
                <ControlStyle CssClass="thumbnailGraphic" />
        </asp:ImageField>
        <asp:HyperLinkField DataNavigateUrlFields="ID" 
            DataNavigateUrlFormatString="Details.aspx?ID={0}" HeaderText="Detail" 
            SortExpression="ID" Text="Detail" />
    </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>" 
    
    
        
        
    
        SelectCommand="SELECT [ID], [FirstName], [LastName], [Address], [Phone], [Photo] FROM [Members]">
</asp:SqlDataSource>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
    <p>
</p>
    <p>
</p>
    <p>
</p>
    <p>
</p>
</asp:Panel>
</asp:Content>

